package com.example.my_self_view.list

/**
 * @dsc     简介
 * @Author  LiWeiZhong
 * @Date    2025/1/20 10:45
 * @Version 1.0
 */
data class Letter(
    val value: String
): Item() {
    init {
        type = Type.TITLE
    }

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is Letter) return false
        if (!super.equals(other)) return false

        if (value != other.value) return false

        return true
    }

    override fun hashCode(): Int {
        var result = super.hashCode()
        result = 31 * result + value.hashCode()
        return result
    }


}